package com.liwenfeng.diancanspringboot.pojo.entity;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 订单明细
 */
@Data
public class OrderDetail implements Serializable {

    public static final Integer TO_BE_DOING = 0;
    public static final Integer DOING = 1;
    public static final Integer TO_BE_SEND = 2;
    public static final Integer COMPLETED = 3;
    public static final Integer CANCELLED = 4;


    private static final long serialVersionUID = 1L;

    private Long id;

    //名称
    private String name;

    //订单id
    private Long orderId;

    //菜品id
    private Long dishId;

    //套餐id
    private Long setmealId;

    //口味
    private String dishFlavor;

    //数量
    private Integer number;

    //单价
    private BigDecimal amount;

    //图片
    private String image;
    // 状态 0.待加工，1.加工中，2.待上菜，3.完成，4.已取消
    private Integer status;
    // 厨师id
    private Long chefId;
    //服务员id
    private Long waiterId;
    //完成时间
    private LocalDateTime completeTime;
    //桌号
    private Integer place;
}
